package com.ymttest.database.sqlwapper;

import com.ymt.database.SqlManager;
import com.ymttest.utils.EnvSetup;

/**
 * APP团信息
 * 
 * @author wanghuiyong
 *
 */
public class YmtAppTuanWapper {
	SqlManager manage;

	public YmtAppTuanWapper() {
		manage = new SqlManager("ymt" + EnvSetup.getEnv());
	}

	/**
	 * 根据用户Id删除创建的团
	 * 
	 * @param UserId
	 * @return
	 */
	public boolean delYmtAppTuan(int UserId) {
		int a = manage.delete("com.ymttest.database.mapping.YmtAppTuanMapper.deleteByCreatedByUserId", UserId);
		manage.commit();
		if (a > 0) {
			return true;
		}
		return false;
	}

	public static void main(String[] args) {
		YmtAppTuanWapper test = new YmtAppTuanWapper();
		test.delYmtAppTuan(1327959);
	}
}
